//Plugin start
		 (function($)
		   {
		     var methods = 
		       {
		         init : function( options ) 
		         {
		           return this.each(function()
		             {
		               var _this=$(this);
		                   _this.data('marquee',options);
		               var _li=$('>li',_this);
		                   
		                   _this.wrap('<div class="slide_container"></div>')
		                        .height(_this.height())
		                       .hover(function(){if($(this).data('marquee').stop){$(this).stop(true,false);}},
		                              function(){if($(this).data('marquee').stop){$(this).marquee('itemMarquee');}})
		                        .parent()
		                        .css({position:'relative',overflow:'hidden','height':$('>li',_this).height()})
		                        .find('>ul')
		                        .css({width:screen.width*2,position:'absolute'});
		           
		                   for(var i=0;i<Math.ceil((screen.width*3)/_this.width());++i)
		                   {
		                     _this.append(_li.clone());
		                   } 
		             
		               _this.marquee('itemMarquee');});
		         },
		      
		         itemMarquee:function()
		         {
		           var $this=this;
		           $this.animate({'left':$('>li',$this).width()*-1},
		                         $this.data('marquee').duration,
		                         'swing',
		                         function()
		                         {
		                           $this.css('left',0).append($('>li:first',$this));
		                           $this.delay($this.data('marquee').delay).marquee('itemMarquee');
		             
		                         }
		                        );
		                             
		         }
		       };
		   
		     $.fn.marquee = function(m) 
		     {
		       var settings={
		                     'delay':3000,
		                     'duration':1000,
		                     'stop':true
		                    };
		       
		       if(typeof m === 'object' || ! m)
		       {
		         if(m){ 
		         $.extend( settings, m );
		       }
		 
		         return methods.init.apply( this, [settings] );
		       }
		       else
		       {
		         return methods[m].apply( this);
		       }
		     };
		   }
		 )( jQuery );
		 
		 //Plugin end
		 
		 //call
		 $(document).ready(
		   function(){$('.itemMarquee').marquee({delay:3000});}
		 );
